package com.okilo.online.app.tools.helper

import android.app.Application
import com.okilo.online.app.OkiloApplication
import com.okilo.online.app.lib.analyse.OkiloAnalyseUtil

/**
 * TODO: Analysis Lib 初始化时机
 */
object OkiloAnalysisHp {

    /**
     * TODO: APP启动时，初始化一下 analysis lib
     */
    fun initLibAtLaunch(appContext: Application) {
//        OkiloAnalyseBuilder.pathGoogleInstall = "/aJB9tiBXqskbe9AQah34Q"// /v1/channelInstallTemp
//        OkiloAnalyseBuilder.pathAdjustInstall = "/nGwNKxsoD0rGENSpa9PSA"// /v1/adjustInstallTemp
//        OkiloAnalyseBuilder.pathFirebaseInstall = "/m0gKCia9k6aLQHbEBLNCA"// /v1/fireBase/save

        OkiloAnalyseUtil.init(appContext)
    }

    /**
     * TODO: 成功获取地区转发路径时，初始化一下 analysis lib
     */
    fun initLibAtZoneSuccess(appContext: Application) {
        OkiloAnalyseUtil.init(appContext)
    }

    /**
     * TODO: 成功登录时，初始化一下 analysis lib
     */
    fun initLibAtLoginSuccess(appContext: Application) {
        OkiloAnalyseUtil.init(appContext)
    }
}